import { Component } from '@angular/core';
import { NavController, NavParams, IonicPage } from 'ionic-angular';
import { HttpServiceProvider } from '../../providers/http-service/http-service';

@IonicPage()
@Component({
  selector: 'page-bill',
  templateUrl: 'bill.html',
})
export class BillPage {

    data = []

    constructor(public navCtrl: NavController, public navParams: NavParams, public http: HttpServiceProvider) {

    }

    list(){
  	  this.http.balancelist((result)=>{
        if(result)
          this.data = result.list
      })
    }

    ionViewDidLoad() {
  	  this.list()
      console.log('ionViewDidLoad LoginPage');
    }

}
